cmake_minimum_required(VERSION 3.5)

project(Frequency_Filter)

add_definitions(-std=c++11)

IF (WIN32)
	MESSAGE(STATUS "Now is windows")
	set(OpenCV_DIR F:/software/Opencv/opencv/build/x64/vc15/lib)
ELSEIF (UNIX)
	MESSAGE(STATUS "Now is UNIX-like OS's.")
	set(OpenCV_DIR /home/nc/download/opencv/opencv-3.4.2/build)
ENDIF ()

set (GrayTransform ../Grayscale_Transformation_and_Spatial_Filtering)

find_package(OpenCV REQUIRED)

# set(OpenCV_FOUND 1)
include_directories(${OpenCV_INCLUDE_DIRS})

include_directories(include ${GrayTransform}/include)

add_executable(FrequencyFilter src/main.cpp src/frequency_filter.cpp 
			   ${GrayTransform}/src/gray_transform.cpp)

link_directories(${OpenCV_LIBRARY_DIRS})

target_link_libraries(FrequencyFilter ${OpenCV_LIBS})